<?php
if (isset($_POST['login']))
{
	if (Login::isLoggedIn())
		header('location: index.php');
	else
	{
		Login::destroy();
		echo notification("Incorrecte email of wachtwoord!", 'error');
	}
}
?>
<div id="form">
	<form name="login" method="post">
		<fieldset class="info_fieldset">
			<div id="fields">
				<label>Email</label><input class="textbox" type="text" name="txtEmail" value="" />
				<label>Wachtwoord</label><input class="textbox" type="password" name="txtWachtwoord" value="" />
				<label>&nbsp;</label>&nbsp;<input class="button" type="submit" name="login" value="Inloggen" />&nbsp;<a class="button" href="index.php?c=gebruiker&p=forgotpass">Wachtwoord vergeten?</a>
			</div>
		</fieldset>
	</form>
</div>
